<%@ taglib prefix="s" uri="/struts-tags"%>
<h2>Administration des Questions</h2>

<div>
<s:url id="creerQuestionUrl" action="creerQuestion" />
<s:a href="%{creerQuestionUrl}">Créer une Question</s:a></div>
<div class="questionslist">
<s:iterator value="categorieList">
<h3><s:property value="nom" /></h3>
<ul>
<s:iterator var="question" value="questions">
	<s:url id="consulterUrl" action="consulterQuestion"><s:param name="id" value="#question.id"/></s:url>
	<li><s:a href="%{consulterUrl}"><s:property value="#question.question" /></s:a></li>
</s:iterator>
</ul>
</s:iterator>
</div>

